package de.playmee;

public class ChannelTrackRating implements Comparable<ChannelTrackRating> {

	private long channelId;
	private long trackId;
	private long ratingValue;

	/**
	 * @return channelId
	 */
	public long getChannelid() {
		return channelId;
	}

	/**
	 * sets the channel id
	 * 
	 * @param channelId
	 */
	public void setChannelId(long channelId) {
		this.channelId = channelId;
	}

	/**
	 * @return trackId
	 */
	public long getTrackId() {
		return trackId;
	}

	/**
	 * sets the track id
	 * 
	 * @param trackid
	 */
	public void setTrackId(long trackId) {
		this.trackId = trackId;
	}

	/**
	 * @return ratingValue
	 */
	public long getRatingValue() {
		return ratingValue;
	}

	/**
	 * sets the rating value
	 * 
	 * @param value
	 */
	public void setRatingValue(long value) {
		this.ratingValue = value;
	}

	@Override
	public int compareTo(ChannelTrackRating another) {
		if (this.getRatingValue() > another.getRatingValue()) {
			return 1;
		} else if (this.getRatingValue() == another.getRatingValue()) {
			return 0;
		} else {
			return -1;
		}
	}
}
